package com.j2eefast.web.job.task;

import com.j2eefast.web.service.JumucClassifyService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("jobInitJumucClassify")
public class JobInitJumucClassify {

    @Autowired
    private JumucClassifyService jumucClassifyService;

    private final static Logger LOGGER = LoggerFactory.getLogger(JobInitJumucClassify.class);

    public void initJumucClassify(){
        LOGGER.info("开始初始化分类");
        jumucClassifyService.initClassify();
        LOGGER.info("完成分类初始化");
    }
}
